/*  1:   */package com.linkage.bss.commons.exception;
/*  2:   */
/*  3:   */import java.io.Serializable;
/*  4:   */
/* 18:   */public class Result
/* 19:   */  implements Serializable
/* 20:   */{
/* 21:   */  private static final long serialVersionUID = -6961977579213088716L;
/* 22:22 */  public static final Result BSS_SUCCESS = new Result(0, "成功");
/* 23:23 */  public static final Result BSS_SYS_ERROR = new Result(-9999, "系统错误");
/* 24:   */  
/* 25:25 */  private int code = 0;
/* 26:26 */  private String msg = "成功";
/* 27:   */  
/* 33:   */  public Result(int code, String msg)
/* 34:   */  {
/* 35:35 */    this.code = code;
/* 36:36 */    this.msg = msg;
/* 37:   */  }
/* 38:   */  
/* 39:   */  public Result(Result result) {
/* 40:40 */    this.code = result.getCode();
/* 41:41 */    this.msg = result.getMsg();
/* 42:   */  }
/* 43:   */  
/* 44:   */  public int getCode() {
/* 45:45 */    return this.code;
/* 46:   */  }
/* 47:   */  
/* 48:   */  public void setCode(int code) {
/* 49:49 */    this.code = code;
/* 50:   */  }
/* 51:   */  
/* 52:   */  public String getMsg() {
/* 53:53 */    return this.msg;
/* 54:   */  }
/* 55:   */  
/* 56:   */  public void setMsg(String msg) {
/* 57:57 */    this.msg = msg;
/* 58:   */  }
/* 59:   */  
/* 66:   */  public boolean equals(Object r)
/* 67:   */  {
/* 68:68 */    boolean b = false;
/* 69:69 */    if ((r instanceof Result)) {
/* 70:70 */      if (getCode() == ((Result)r).getCode()) {
/* 71:71 */        b = true;
/* 72:   */      } else
/* 73:73 */        b = false;
/* 74:   */    } else
/* 75:75 */      b = super.equals(r);
/* 76:76 */    return b;
/* 77:   */  }
/* 78:   */  
/* 79:   */  public int hashCode() {
/* 80:80 */    return super.hashCode();
/* 81:   */  }
/* 82:   */  
/* 87:   */  public String toString()
/* 88:   */  {
/* 89:89 */    StringBuilder sb = new StringBuilder();
/* 90:90 */    sb.append("<code>");
/* 91:91 */    sb.append(getCode());
/* 92:92 */    sb.append("</code>");
/* 93:93 */    sb.append("<msg>");
/* 94:94 */    sb.append(getMsg());
/* 95:95 */    sb.append("</msg>");
/* 96:96 */    return sb.toString();
/* 97:   */  }
/* 98:   */}


/* Location:           E:\workspace\sungl111\workspace_promotion\BizHallConfig\WebRoot\WEB-INF\lib\bss.commons-0.1.jar
 * Qualified Name:     com.linkage.bss.commons.exception.Result
 * JD-Core Version:    0.7.0-SNAPSHOT-20130630
 */